//
//  AppDelegate+ProjectEnterConfig.m
//  YIJU2.0-HD
//
//  Created by 陈柏兵 on 16/5/6.
//  Copyright © 2016年 张金国. All rights reserved.
//

#import "AppDelegate+ProjectEnterConfig.h"
#import "IQKeyboardManager.h"

@implementation AppDelegate (ProjectEnterConfig)

+ (void)ConfigKeyBoard {
    [[IQKeyboardManager sharedManager] setEnable:YES];
    [[IQKeyboardManager sharedManager] setKeyboardDistanceFromTextField:15];
    [[IQKeyboardManager sharedManager] setEnableAutoToolbar:YES];
    [[IQKeyboardManager sharedManager] setToolbarManageBehaviour:IQAutoToolbarBySubviews];
    [[IQKeyboardManager sharedManager] setShouldResignOnTouchOutside:YES];
}

+ (void)shutOffKeyBoard {
    [[IQKeyboardManager sharedManager] setEnable:NO];
    [[IQKeyboardManager sharedManager] setKeyboardDistanceFromTextField:15];
    [[IQKeyboardManager sharedManager] setEnableAutoToolbar:NO];
    [[IQKeyboardManager sharedManager] setToolbarManageBehaviour:IQAutoToolbarBySubviews];
    [[IQKeyboardManager sharedManager] setShouldResignOnTouchOutside:NO];
}
@end
